package com.agile.leetcode.redis.jedis;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/9/15 10:45
 */
public class JedisUtil {
    private static final String ADDR = "127.0.0.1";

    private static final int PORT = 6379;

    private static JedisPool jedisPool = new JedisPool(ADDR, PORT);

    public static Jedis getJedis() {

        return jedisPool.getResource();

    }

}
